<?php
/*********************************************************************************
* Filename: contact.php
* 
* This page contains the contact form for the fantasy broomball game.  Currently
* this form is setup to submit to the developer's email list.
*
* Author: Phillip Peterson
* Date Created: 12/01/2009
**********************************************************************************/

//Start the PHP session if it doesn't exist
if (!isset($_SESSION))
	session_start();
 
//The common.php file contains common functions used throughout the website
include_once "common.php";

//Store the team id which is stored in the session log
$team_id = $_SESSION['team_id'];

//Echo the html for the css and js external files
echo "$header_open";
echo "$css_contact";
echo "$js_contact";
echo "$header_close";

?>

<body onload="clearForm();">
	<div id="wrapper">
		<div id="inner">
			<?php
			    //Output the standard website header
				echo "$g_nav_div";
			?>
			<div id="content">
            
                <div id="contact_contain">
                    <div id="inside">
                        <div id="contact_header">
                            <div id="header">Contact Us</div>
                            If you have any comments, questions, or bug fixes to report
                            please use our contact form.  We'd love you hear from you!
                        </div>
                        <table id="contact_table">
                            <tr>
                                <td><span class="label">Name </span></td>
                                <td><input class="input" id="name" size="20" type="text"></td>
                            </tr>
                            <tr>
                                <td><span class="label">Email </span></td>
                                <td><input class="input" id="email" size="20" type="text"></td>
                            </tr>
                            <tr>                    
                                <td><span class="label">Subject </span></td>
                                <td><input class="input" id="subject" size="20" type="text"></td>
                            </tr>
                            <tr>                    
                                <td><span class="label">Message </span></td>
                                <td><textarea row="20" cols="40" class="input" id="message"></textarea></td>
                            </tr>
                        </table>
                        
                        <input id="submit_contact" type="button" value="Send" onclick="submitForm(this);">
                    </div>
                </div>
			</div>


			<div id="sidebar">
				<div id="twitter_banner" onmouseover="hoverContact(this);" 
										 onmouseout="unhoverContact(this);"
										 onclick="window.open('http://twitter.com/fantasybroombal','_blank');"</div>
				<div id="facebook_banner" onmouseover="hoverContact(this);" 
										  onmouseout="unhoverContact(this);"
										  onclick="window.open('http://www.facebook.com/home.php?#/group.php?gid=171030538873','_blank');"></div>

			</div>	
			
			<div id="footer">
			  <?php echo "$footer"; ?>
			</div>
		</div>
	</div>

</body>
</html>
